<html>
<head>
	<title>Image fiels</title>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
	<style type="text/css">
		.imageClass
		{
			width: 150px;
			height: 150px;
		}
	</style>
</head>

<body>
	<script type="text/javascript">
		for(var i = 0; i < 15; i ++)
		{
			var imageTag = "<img src='star.jpg' alt='picture " + i + "' class='imageClass' />";
			$(imageTag).appendTo("body");
		}
		
		document.write("<br />");
		
		$(".imageClass").each(function()
		{
			document.write("alt: " + $(this).attr("alt") + "; src: " +
				$(this).attr("src") + "<br />");
		});
	</script>
</body>
</html>